package com.heima.admin.controller;

import com.heima.feign.Wemedia.IWemediaClient;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 许敦军
 * @version 1.0
 * @project heima-leadnews
 * @date 2024/1/27 16:59:35
 */
@RestController
@RequestMapping
public class ChannelsController{
    @Autowired
    private IWemediaClient iWemediaClient;
    @GetMapping("/api/v1/channel/channels")
    public ResponseResult<?> findAll() {
        return iWemediaClient.channels();
    }
}
